package com.liu.netty.entity;

import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.persistence.*;

@Entity
@Table(name = "sx_self_check")
@Getter
@Setter
@NoArgsConstructor
public class SelfCheck {
   @Id
    private String id;
    private String light1;//光控1
    private String light2;//光控2
    private String rain1;//雨控1
    private String rain2;//雨控2
    private String sweepMotor;//扫虫刷-步进电机
    private String upMotor;//挡虫板上-直流电机
    private String downMotor;//挡虫板下-直流电机
    private String clearMotor;//清虫板-直流电机
    private String heater;//哄虫加热器
    private String tempSensor;//温度传感器
    private String camUp;//摄像头 上
    private String camDown;//摄像头下
    private String fillLightUp;//补光灯上
    private String fillLightDown;//补光灯下
    private String power;//控制板电源

    private String dateTime;
   @ManyToOne(fetch = FetchType.EAGER)
   @JoinColumn(name = "dr_id")
    private Driver driver;


}
